package com.jvyou.thread.d04method;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/7/30 10:09
 * @Description
 */
public class GetName extends Thread {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName() + ":" + i);
        }
    }

    public static void main(String[] args) {
        GetName getName = new GetName();
        getName.start();
    }

}
